package com.project.bookstore.order.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class OrderDetailDO implements Serializable {
    @ApiModelProperty("订单ID")
    private Long id;

    @ApiModelProperty("订单状态")
    private Integer state;
    @ApiModelProperty("订单号")
    private String orderNumber;
    @ApiModelProperty("发货单号")
    private String expressOrder;
    @ApiModelProperty("备注")
    private String remarks;
    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime created;

    private Long bookId;
    @ApiModelProperty("书籍名称")
    private String bookName;
    private String bookPicture;
    @ApiModelProperty("支付金额")
    private BigDecimal amount;
    @ApiModelProperty("书籍单价")
    private BigDecimal price;
    @ApiModelProperty("书籍数量")
    private Integer count;

    private String province;

    private String city;

    private String area;

    private String detailAdd;

    private String receiver;

    private String phone;

}
